/*
 * @Date: 2023-01-10 10:45:01
 * @LastEditTime: 2023-10-11 17:36:52
 * @FilePath: /wkw/src/main.ts
 * 介绍:该项目绘制尺寸原型为 W:750 1:1
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "@@/router/index";
// * pinia
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
// * 多语言
import { i18n } from "@@/language/index";
import VConsole from "vconsole";

const env = import.meta.env;
if (env.VITE_USE_VCONSOLE == "1") new VConsole();
/**
 * * pinia实例
 */
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

/**
 * * app实例
 */
const app = createApp(App);

app.use(router).use(pinia).use(i18n);

app.mount("#app");
